<%-- 
    Document   : pestanasConvocatoria
    Created on : 15-dic-2011, 12:11:29
    Author     : Ainhoa y Enrique
--%>

<%@page import="java.util.ResourceBundle"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<br>
<div id="pestanas">
<form action="visualizar-convocatoria-accion.do" name="pestanasForm" method="POST">
    <input type="hidden" name="idCon" id="idCon" value="<%if (request.getParameter("idCon")!= null) {%><%=request.getParameter("idCon")%><%}else{%><%=request.getAttribute("idCon")%><%}%>" />
    <%request.setAttribute("idCon",request.getAttribute("idCon"));%>
    <input type="hidden" name="idPestana" id="idPestana" value="<%if (request.getParameter("idPestana")!= null) {%><%=request.getParameter("idPestana")%><%}else{%>1<%}%>" />
    <ul>
        <li <%if (request.getParameter("idPestana")== null || request.getParameter("idPestana").trim().equals("1")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasForm.idPestana.value='1';document.pestanasForm.submit()">Candidatos</a></li>
    </ul>
</form>
</div>

<div id="contenedorpestanas">
    <%
        String contenidoConvocatoria=null;
        ResourceBundle bundle=(ResourceBundle)application.getAttribute("acciones-mapeo");
        //ResourceBundle bundle=(ResourceBundle)application.getAttribute("vistas-mapeo");
        if (request.getAttribute("contenido-convocatoria")==null){

         contenidoConvocatoria=bundle.getString("menu-principal");
        }else{
            String contenido=(String)request.getAttribute("contenido-convocatoria");
            contenidoConvocatoria=bundle.getString(contenido);
        }
    %>
    <jsp:include page="<%= contenidoConvocatoria %>" flush="true" />
</div>